{% extends 'management.html' %}
{% load i18n %}


{% block content %}
  <div id="detail">
    {% for category in data %}
      <div class="post">
        <h1>{{category.name}}</h1>
        <p>{{category.describe|escape|linebreaks}}</p>
        <h4>
                <a href="/admin/deletePictureCategory/?id={{category.key.id}}"  onClick="return confirm('{% trans "Are you sure?" %}')">{% trans 'Delete' %}</a>
        </h4>
      </div>
    {% endfor %}
    <div class="messages">
      <form name="category" action="/admin/addPictureCategory/" method="post">
          <p>{% trans "Name" %}:
            <input name="name" type='text' size="40" />
          </p>
          <p>
            {% trans "Desciption" %}:
          </p>
          <p>
            <textarea name="describe" rows="10" cols="52" ></textarea>
          </p>
          <p class="subbutton"><input type='submit' value='{% trans "OK" %}' /></p>
      </form>
    </div>
</div>
{% endblock content %}
